#!/bin/bash
set -e
# condition for example
sudo systemctl status node_exporter|grep running > /dev/null

if [[ $? -eq 0 ]]; then
  echo "running"
else
  echo "dead"
fi

